home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
clipper
/
clipmous.zip
/
MOUSTEST.PRG
< prev
Wrap
Text File
|
1992-03-25
|
971b
|
37 lines
** little program to test CLIPMOUS.LIB
** compile with: CLIPPER moustest
** link with : RTLINK FILE moustest LIBRARY clipmous
********************************************************
OK = Minit() && mouse initialization
if OK = 0
?
? "mouse driver not installed! -- return to dos :-("
?
RETURN
endif
clear screen
set cursor off
Mshow() && show mouse cursor
@0,0 say space(6)+"Column"+space(6)+"Line"+space(6)+"Button"+space(6)+"Last"
@1,0 say space(6)+"------"+space(6)+"----"+space(6)+"------"+space(6)+"----"
@24,0 say "Click here to exit!"
do while .t.
@2,0 say ""
? Mx(), My(), Mbout(), Mlast() && colomn and line of mouse cursor with
&& button ans last button status
if My() = 25 .and. Mx() < 20 .and. Mbout() > 0
@10,38 say "EXIT!"
exit
endif
enddo
Mend() && remove mouse support
clear screen
return